﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebBanHang.DTO;
namespace WebBanHang.GUI
{
    public partial class Registry : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnDangKy_Click(object sender, EventArgs e)
        {

            ThanhVien TV = new ThanhVien();
            TV.UserName = txtTenDangNhap.Text;
            TV.PassWord = txtMatKhau.Text;
            TV.HoTen = txtHoTen.Text;
            TV.Hinhanh = "~/Images/Logo.png";
            TV.DienThoai = txtDienThoai.Text;
            TV.Email = txtEmail.Text;
            TV.DiaChi = txtDiaChi.Text;
            TV.GioiTinh = "Nam";
            if (raNu.Checked)
            {
                TV.GioiTinh = "Nu";
            }
            ThanhVien_BUS.Them(TV);
             Response.Redirect("~/GUI/DangKyThanhCong.aspx");
        }
    }
}